package jdl.databaseObjects.datatypes.common;

import jdl.databaseObjects.DbType;
import jdl.databaseObjects.DbTypeUnknownException;

public class CommonDbTypeFactory {
	public static DbType createTimestampDbType() {
		return new TimestampDbType();
	}

	public static DbType fromString(String typeName)
			throws DbTypeUnknownException {
		if (typeName.compareToIgnoreCase("timestamp") == 0) {
			return createTimestampDbType();
		}
		throw new DbTypeUnknownException();
	}
}
